package zust.se.springpro.service.Impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;
import zust.se.springpro.dao.ProjectMapper;
import zust.se.springpro.dao.UserMapper;
import zust.se.springpro.entity.Project;
import zust.se.springpro.service.ProjectServiceI;

import java.util.ArrayList;
import java.util.List;

@Transactional
@Component
public class ProjectServiceImpl implements ProjectServiceI {

    @Autowired
    ProjectMapper projectMapper;

    @Override
    public int addproject(Project project)
    {
        int tag=projectMapper.addProject(project);
        return tag;
    }
}
